import { createApp } from 'vue'
import App from '@/App.vue'
import router from '@/router'
import '@/style/reset.scss'
import ElementPlus from 'element-plus'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import { createPinia } from 'pinia'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
import 'element-plus/dist/index.css'
import HospitalTop from '@/components/hospital_top/index.vue'
import HospitalButtom from '@/components/hospital_bottom/index.vue'
import login from '@/components/login/index.vue'
import visitor from '@/components/visitor/visitor.vue'
import './permisstion'

const pinia = createPinia()
pinia.use(piniaPluginPersistedstate)


const app = createApp(App)
app.component('HospitalTop', HospitalTop)
app.use(ElementPlus, {
  locale: zhCn,
})
app.use(pinia)
app.component('HospitalButtom', HospitalButtom)
app.component('login', login)
app.component('visitor', visitor)
app.use(router)
app.mount('#app')
